using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools
{
    /// <summary>
    /// <para>Merge Branch</para>
    /// <para>Merges two or more logical branches into a single output.</para>
    /// <para>将两个或多个逻辑分支合并到单个输出中。</para>
    /// </summary>    
    [DisplayName("Merge Branch")]
    public class MergeBranch : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public MergeBranch()
        {

        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Merge Branch";

        public override string CallName => "management.MergeBranch";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_values, _out_value];

        /// <summary>
        /// <para>In Values</para>
        /// <para>A list of values from different branches. The first ready-to-run state value in the list will be the output of the tool.</para>
        /// <para>来自不同分支的值列表。列表中的第一个准备运行状态值将是工具的输出。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("In Values")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _in_values { get; set; } = null;


        /// <summary>
        /// <para>output_value</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("output_value")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_value { get; set; }


        public MergeBranch SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}